import Layout from '@/views/layout/Layout'

const activity = {
  path: '/workOrderManage',
  component: Layout,
  name: 'workOrderManage',
  alwaysShow: true,
  meta: { title: 'workOrderManage', icon: 'workOrderManage' },
  children: [
    {
      path: 'pickUpOrder',// 接工单管理
      component: () => import('@/views/after-sale/workOrderManage/pickUpOrder/pickUpOrder'),
      name: 'pickUpOrder',
      meta: { title: 'pickUpOrder' }
    },
    {
      path: 'addPickUpOrder',// 新建接工单
      component: () => import('@/views/after-sale/workOrderManage/pickUpOrder/add'),
      name: 'addPickUpOrder',
      hidden: true,
      meta: { title: 'addPickUpOrder' }
    },
    {
      path: 'editPickUpOrder',// 编辑接工单
      component: () => import('@/views/after-sale/workOrderManage/pickUpOrder/add'),
      name: 'editPickUpOrder',
      hidden: true,
      meta: { title: 'editPickUpOrder' }
    },
    {
      path: 'viewPickUpOrder',// 查看接工单
      component: () => import('@/views/after-sale/workOrderManage/pickUpOrder/add'),
      name: 'viewPickUpOrder',
      hidden: true,
      meta: { title: 'viewPickUpOrder' }
    },
    {
      path: 'insuranceOrder',// 保险单
      component: () => import('@/views/after-sale/workOrderManage/insuranceOrder/insuranceOrder'),
      name: 'insuranceOrder',
      meta: { title: 'insuranceOrder' }
    },
    {
      path: 'addInsuranceOrder',// 新建保险单
      component: () => import('@/views/after-sale/workOrderManage/insuranceOrder/addInsuranceOrder'),
      name: 'addInsuranceOrder',
      hidden: true,
      meta: { title: 'addInsuranceOrder' }
    },
    {
      path: 'editInsuranceOrder',// 编辑保险单
      component: () => import('@/views/after-sale/workOrderManage/insuranceOrder/addInsuranceOrder'),
      name: 'editInsuranceOrder',
      hidden: true,
      meta: { title: 'editInsuranceOrder' }
    },

    ///////////////// start
    {
      path: 'fast',// 快速单
      component: () => import('@/views/after-sale/workOrderManage/fast/index'),
      name: 'fastOrder',
      meta: { title: 'fastOrder' }
    },
    {
      path: 'create-fast',// 新建快速单
      component: () => import('@/views/after-sale/workOrderManage/fast/create/index'),
      name: 'createFastOrder',
      hidden: true,
      meta: { title: 'createFastOrder' }
    },
    {
      path: 'eidt-fast',// 修改快速单
      component: () => import('@/views/after-sale/workOrderManage/fast/create/index'),
      name: 'editFastOrder',
      hidden: true,
      meta: { title: 'editFastOrder' }
    },
    {
      path: 'car-wash',// 洗车单
      component: () => import('@/views/after-sale/workOrderManage/car-wash/index'),
      name: 'carWashOrder',
      meta: { title: 'carWashOrder' }
    },
    {
      path: 'create-car-wash',// 新建洗车单
      component: () => import('@/views/after-sale/workOrderManage/car-wash/create/index'),
      name: 'createCarWashOrder',
      hidden: true,
      meta: { title: 'createCarWashOrder' }
    },
    {
      path: 'eidt-car-wash/:id',// 修改洗车单
      component: () => import('@/views/after-sale/workOrderManage/car-wash/create/index'),
      name: 'eidtCarWashOrder',
      hidden: true,
      meta: { title: 'eidtCarWashOrder' }
    },
    {
      path: 'comprehensive',// 综合单
      component: () => import('@/views/after-sale/workOrderManage/comprehensive/index'),
      name: 'comprehensiveOrder',
      meta: { title: 'comprehensiveOrder' }
    },
    {
      path: 'create-comprehensive',// 新建综合单
      component: () => import('@/views/after-sale/workOrderManage/comprehensive/create/index'),
      name: 'createComprehensive',
      hidden: true,
      meta: { title: 'createComprehensive' }
    },
    {
      path: 'eidt-comprehensive/:id',// 修改综合单
      component: () => import('@/views/after-sale/workOrderManage/comprehensive/create/index'),
      name: 'eidtComprehensive',
      hidden: true,
      meta: { title: 'eidtComprehensive' }
    },
    {
      path: 'quotation',// 报价单
      component: () => import('@/views/after-sale/workOrderManage/quotation/index'),
      name: 'quotationOrder',
      meta: { title: 'quotationOrder' }
    },
    {
      path: 'create-quotation',// 新建报价单
      component: () => import('@/views/after-sale/workOrderManage/quotation/create/index'),
      name: 'createQuotationOrder',
      hidden: true,
      meta: { title: 'createQuotationOrder' }
    },
    {
      path: 'edit-quotation',// 编辑报价单
      component: () => import('@/views/after-sale/workOrderManage/quotation/create/index'),
      name: 'editQuotationOrder',
      hidden: true,
      meta: { title: 'editQuotationOrder' }
    },
    {
      path: 'sell',// 销售单
      component: () => import('@/views/after-sale/workOrderManage/sell/index'),
      name: 'sellOrder',
      meta: { title: 'sellOrder' }
    },
    {
      path: 'create-sell',// 新建销售单
      component: () => import('@/views/after-sale/workOrderManage/sell/create/index'),
      name: 'createSellOrder',
      hidden: true,
      meta: { title: 'createSellOrder' }
    },
    {
      path: 'edit-sell',// 编辑销售单
      component: () => import('@/views/after-sale/workOrderManage/sell/create/index'),
      name: 'editSellOrder',
      hidden: true,
      meta: { title: 'editSellOrder' }
    },
    {
      path: 'simplicity',// 简约工单详情
      component: () => import('@/views/after-sale/workOrderManage/simplicity/index'),
      name: 'simplicityOrder',
      hidden: true,
      meta: { title: 'simplicityOrder' }
    },
    {
      path: 'settlement',// 结算单
      component: () => import('@/views/after-sale/workOrderManage/settlement/index'),
      name: 'settlementOrder',
      hidden: true,
      meta: { title: 'settlementOrder' }
    },
    {
      path: 'order-manage',// 工单管理
      component: () => import('@/views/after-sale/workOrderManage/order-manage/index'),
      name: 'orderManageOrder',
      alwaysShow: true,
      meta: { title: 'orderManageOrder' },
      children: [
        {
          path: 'order',// 工单管理
          component: () => import('@/views/after-sale/workOrderManage/order-manage/order/index'),
          name: 'orderManageOrder',
          meta: { title: 'orderManageOrder' },
        },
        {
          path: 'credit',// 挂账工单
          component: () => import('@/views/after-sale/workOrderManage/order-manage/credit/index'),
          name: 'creditManageOrder',
          meta: { title: 'creditManageOrder' },
        }
      ]
    },
    {
      path: 'customer-kanban',// 客户工单看板
      component: () => import('@/views/after-sale/workOrderManage/customer-kanban/index'),
      name: 'customerKanbanOrder',
      meta: { title: 'customerKanbanOrder' }
    },
    {
      path: 'workshop-kanban',// 车间工单看板
      component: () => import('@/views/after-sale/workOrderManage/workshop-kanban/index'),
      name: 'workshopKanbanOrder',
      meta: { title: 'workshopKanbanOrder' }
    },
    ///////////////// end

  ]
}

export default activity
